﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using XbdSoft.Domain;

namespace XbdSoft.Contract
{
    [ServiceContract] 
    public interface IDownloadService
    {
        [OperationContract]
        string GetDownloadUrl(long resourceID); 

        [OperationContract]
        string GetDownloadInfoUrl();

        [OperationContract]
        List<AudioCategory> GetRecommendDownloadCategories();

        [OperationContract]
        List<AudioCategory> GetAllDownloadCategories();

        [OperationContract]
        AudioResource GetAudioResource(long resourceID);

        [OperationContract]
        List<AudioResource> GetAudioResourcesOfCategory(int categoryId);

        [OperationContract]
        AdvertisementMimi GetDefaultAdvertisementMimi();

        [OperationContract]
        List<AdvertisementMimi> GetAllAdvertisementMimis();

        [OperationContract]
        AudioResourceDTO GetAudioResources(string keyword, int pageIndex, int pageSize);


        [OperationContract]
        int GetAudioResourcesCount(string keyword);

        [OperationContract]
        List<AudioClass> GetToShowAudioClasses();

        [OperationContract]
        AudioResourceDTO GetToShowAudioResources(string keyword, int classID,int age, int pageIndex, int pageSize);


        [OperationContract]
        AudioResourceDTO GetToShowAudioResourcesByAge(int ageIndex,int pageIndex, int pageSize);

        [OperationContract]
        string GetUsePassword();
    }
}
